import { makeAutoObservable } from "mobx"
import {http} from '@/utils'
class UserStore{
    UserInfo={}
    constructor() {
        // 响应式
        makeAutoObservable(this)
      }
      getUserInfo= async()=>{
          //调用接口数据
          const res=await http.get('./user/profile')
          this.UserInfo=res.data

      }


}

export default UserStore